package com.acme.bankapp.server.command;

import com.acme.bankapp.domain.bank.Bank;

public abstract class BankCommand implements Command {
	protected Bank bank;
	protected String arg;
	
	public BankCommand(Bank bank, String arg) {
		this.bank = bank;
		this.arg = arg;
	}
	
	protected String formatError(String error) {
		return String.format("command failed: %s", error);
	}
}
